<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>客户管理</title>
    <%@ include file="/WEB-INF/views/commons/common.jsp"%>
    <script type="text/javascript" src="/static/js/system/client.js"></script>
</head>
<body>
    <%--数据表格--%>
    <table id="client_datagrid"  fit="true"></table>

    <%--表格工具栏--%>
    <div id="tb">
        <div>
            <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">添加</a>
            <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
            <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" data-cmd="remove">删除</a>
            <a href="JavaScript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
            <a href="javascript:;" class="easyui-linkbutton" data-cmd="watch" data-options="iconCls:'icon-search',plain:true">查看</a>
            <a href="javascript:;" class="easyui-linkbutton" data-cmd="regularization" data-options="iconCls:'icon-man',plain:true">转正</a>
            <a href="javascript:;" class="easyui-linkbutton" data-cmd="putPool" data-options="iconCls:'icon-man',plain:true">放入资源池</a>
        </div>
        <div>
            <input type="text" class="easyui-textbox" id="keyword" prompt="客户名/营销员/qq/微信">
            <input  id="beginTime" editable="false" type= "text" class= "easyui-datebox" prompt="最早录入时间"/>
            <input  id="endTime"  editable="false" type= "text" class= "easyui-datebox" prompt="最晚录入时间"/>
            <a href="javascript:;" class="easyui-linkbutton" data-cmd="query" data-options="iconCls:'icon-search',plain:true">查询</a>
        </div>
    </div>


    <%--添加和编辑弹窗--%>
        <div id="edit_dialog" align="center">
        <form id="edit_form" method="post">
            <table  CELLSPACING="20" align="center" style="margin-top: 20px;
                    border-collapse:separate; border-spacing:0px 10px;">
                <input type="hidden" id="clientId" name="id">
                <tr>
                    <td>意向校区:</td>
                    <td><input class="easyui-combobox readOnly" name="campus.id"
                               data-options="
                        editable:false,
                        url:'/dictionaryItem/getDictionaryItemByParentName.do?content='+'意向校区',
                             valueField: 'id',
                            textField: 'name',
                            panelHeight:'auto'
                          "/></td>
                    <td>客户来源:</td>
                    <td><input  name="source.id" class="easyui-combobox readOnly" data-options="
                            editable:false,
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '来源',
                            panelHeight:'auto'
                            "/>
                    </td>
                    <td>姓名:</td>
                    <td><input class="easyui-textbox readOnly" name="name"/></td>
                </tr>
                <tr>
                    <td>性别:</td>
                    <td><input  name="man" class="easyui-combobox readOnly" data-options="
                            editable:false,
                            required:true,
                             valueField: 'id',
                             textField: 'name',
                             data: [{
                                 id: '1',
                                 name: '先生'
                             },{
                                 id: '0',
                                 name: '女士'
                             }],
                             panelHeight:'auto'
                             "/>
                    </td>
                    <td>微信号:</td>
                    <td><input class="easyui-textbox readOnly" name="wechatNum"/></td>
                    <td>QQ:</td>
                    <td><input class="easyui-textbox readOnly"  name="qqNum"/></td>
                </tr>
                <tr>
                    <td>电话:</td>
                    <td><input class="easyui-textbox readOnly" name="tel"/></td>
                    <td>年龄:</td>
                    <td><input class="easyui-textbox readOnly" name="age"/></td>
                    <td>邮箱:</td>
                    <td><input class="easyui-textbox readOnly" name="email"/></td>
                </tr>
                <tr>
                    <td>地址:</td>
                    <td><input class="easyui-textbox readOnly" name="address"/></td>
                    <td>学校:</td>
                    <td><input class="easyui-textbox readOnly" name="school"/></td>
                    <td>学校大客户:</td>
                    <td><input  name="bigClientSchool.id" class="easyui-combobox readOnly" data-options="
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '大客户所在的学校',
                            editable:false,
                            panelHeight:'auto'
                            "/>
                    </td>
                </tr>
                <tr>
                    <td>学历:</td>
                    <td><input  name="education.id" class="easyui-combobox readOnly" data-options="
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '学历',
                            editable:false,
                            panelHeight:'auto'
                            "/>
                    </td>
                    <td>籍贯:</td>
                    <td><input  name="territory.id" class="easyui-combobox readOnly"  data-options="
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '籍贯',
                            editable:false,
                            panelHeight:'auto'
                            "/>
                    </td>
                    <td>学员状态:</td>
                    <td><input  name="state.id" class="easyui-combobox readOnly" data-options="
                        valueField: 'id',
                        textField: 'name',
                        url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '学员状态',
                        editable:false,
                        panelHeight:'auto'
                        "/>
                    </td>
                </tr>
                <tr>
                    <td>专业:</td>
                    <td><input class="easyui-textbox readOnly" name="profession"/></td>
                    <td>工作年限:</td>
                    <td><input class="easyui-textbox readOnly" name="workingYear"/></td>
                    <td>意向程度:</td>
                    <td><input  name="ittState.id" class="easyui-combobox readOnly" data-options="
                        valueField: 'id',
                        textField: 'name',
                        url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '意向程度',
                        editable:false,
                        panelHeight:'auto'
                        "/>
                    </td>
                </tr>
                <tr>

                    <td>意向学科:</td>
                   <td><input  name="ittSubject.id" class="easyui-combobox readOnly" data-options="
                        valueField: 'id',
                        textField: 'name',
                        url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '意向学科',
                        editable:false,
                        panelHeight:'auto'
                    "/>
                    <td>约访时间:</td>
                    <td>
                        <input name="appointTime" type= "text" class= "easyui-datebox readOnly"/>
                    </td>
                    <td>付款情况:</td>
                    <td><input  name="noPay" class="easyui-combobox readOnly" data-options="
                            editable:false,
                            required:true,
                             valueField: 'id',
                             textField: 'name',
                             data: [{
                                 id: '1',
                                 name: '已付款'
                             },{
                                 id: '0',
                                 name: '未付款'
                             }],
                             panelHeight:'auto'
                             "/>
                    </td>
                </tr>
                    <td>是否携带电脑:</td>
                    <td><input  name="hasComputer" class="easyui-combobox readOnly" data-options="
                            editable:false,
                            required:true,
                             valueField: 'id',
                             textField: 'name',
                             data: [{
                                 id: '1',
                                 name: '自带电脑'
                             },{
                                 id: '0',
                                 name: '未带电脑'
                             }],
                             panelHeight:'auto'
                             "/>
                    </td>
                    <td>跟踪人员:</td>
                    <td><input  name="tracer.id" class="easyui-combobox readOnly" data-options="
                        valueField: 'id',
                        textField: 'username',
                        url: '/employee/listData.do?',
                        editable:false,
                        panelHeight:'auto'
                    "/>
                    </td>
                <tr>
                    <td>备注:</td>
                    <td colspan="2"><input style="width: 300px;height: 60px" class="easyui-textbox readOnly" name="remark"/></td>
                </tr>
                <tr>
                    <td>客户关注点:</td>
                    <td colspan="2"><input style="width: 300px;height: 60px" class="easyui-textbox readOnly" name="attention"/></td>
                </tr>
            </table>
        </form>
    </div>


    <%--转正对话框--%>
    <div id="officialStudent_dialog" align="center">
        <form id="officialStudent_form" method="post">
            <table  CELLSPACING="20" align="center" style="margin-top: 20px;
                    border-collapse:separate; border-spacing:0 10px;">
                <input type="hidden" name="id">
                <tr>
                    <td>姓名:</td>
                    <td><input class="easyui-textbox readOn" name="name"/></td>
                    <td>年龄:</td>
                    <td><input class="easyui-textbox readOn" name="age"/></td>
                    <td>性别:</td>
                    <td><input  name="gender.id" class="easyui-combobox readOn" data-options="
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '性别',
                            editable:false,
                            panelHeight:'auto'
                            "/>
                    </td>
                </tr>
                <tr>
                    <td>电话:</td>
                    <td><input class="easyui-textbox readOn" name="tel"/></td>
                    <td>QQ:</td>
                    <td><input class="easyui-textbox readOn" name="qqNum"/></td>
                    <td>邮箱:</td>
                    <td><input class="easyui-textbox readOn" name="email"/></td>
                </tr>
                <tr>
                    <td>地址:</td>
                    <td><input class="easyui-textbox readOn" name="address"/></td>
                    <td>工作年限:</td>
                    <td><input class="easyui-textbox readOn" name="workingYear"/></td>

                    <td>学历:</td>
                    <td><input  name="education.id" class="easyui-combobox readOn" data-options="
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '学历',
                            editable:false,
                            panelHeight:'auto'
                            "/>
                    </td>
                </tr>
                <tr>

                    <td>意向校区:</td>
                    <td><input  name="campus.id" class="easyui-combobox readOn" data-options="
                            editable:false,
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '意向校区',
                            panelHeight:'auto'
                            "/>
                    </td>
                    <td>学校名称:</td>
                    <td><input class="easyui-textbox readOn" id="schoolName" name="schoolName"/></td>

                    <td>客户类型:</td>
                    <td><input  name="clientType.id" class="easyui-combobox readOn" data-options="
                            editable:false,
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '客户类型',
                            panelHeight:'auto'
                            "/>
                    </td>
                </tr>
                <tr>

                    <td>学校客户:</td>
                    <td><input  name="schoolClient.id" class="easyui-combobox readOn" data-options="
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '大客户所在的学校',
                            editable:false,
                            panelHeight:'auto'
                            "/>
                    </td>

                    <td>班级:</td>
                    <td>
                        <input class="easyui-combobox readOn" editable="false" name="clazz.id" data-options="
                        url:'/clazz/listData.do',
                        valueField:'id',
                        textField:'name',
                        panelHeight:'auto'
                    ">
                    </td>
                    <td>营销人员:</td>
                    <td>
                        <input class="easyui-combobox readOn" editable="false" name="marketingPerson.id" data-options="
                        url:'/employee/listData.do',
                        valueField:'id',
                        textField:'username',
                        panelHeight:'auto'
                    ">
                    </td>

                </tr>
                <tr>
                    <td>客户来源:</td>
                    <td><input  name="clientSource.id" class="easyui-combobox readOn" data-options="
                            editable:false,
                            valueField: 'id',
                            textField: 'name',
                            url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '来源',
                            panelHeight:'auto'
                            "/>
                    </td>
                    <td>入学时间:</td>
                    <td><input class="easyui-datetimebox readOn" editable="false" name="entranceTime"/></td>
                    <td>身份证号:</td>
                    <td><input class="easyui-textbox readOn" name="idCard"/></td>
                </tr>
                <tr>
                    <td>紧急联系人:</td>
                    <td><input class="easyui-textbox readOn" name="emergencyName"/></td>
                    <td>紧急联系人电话:</td>
                    <td><input class="easyui-textbox readOn" name="emergencyTel"/></td>

                    <td>就业意向:</td>
                    <td><input  name="jobIntention.id" class="easyui-combobox readOn" data-options="
                        valueField: 'id',
                        textField: 'name',
                        url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '就业意向',
                        editable:false,
                        panelHeight:'auto'
                        "/>
                    </td>
                </tr>
                <tr>
                    <td>工作经历:</td>
                    <td>
                        <input name="workExperience" class="easyui-textbox readOn" />
                    </td>

                    <td>学习状态:</td>
                    <td><input  name="studyState.id" class="easyui-combobox readOn" data-options="
                        valueField: 'id',
                        textField: 'name',
                        url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '学习状态',
                        editable:false,
                        panelHeight:'auto'
                        "/>
                    </td>
                    <td>支付方式:</td>
                    <td><input  name="paymentType.id" class="easyui-combobox readOn" data-options="
                        valueField: 'id',
                        textField: 'name',
                        url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '收款类型',
                        editable:false,
                        panelHeight:'auto'
                        "/>
                    </td>
                </tr>
                <tr>
                    <td>转正时间:</td>
                    <td><input class="easyui-datetimebox readOn" editable="false" name="positiveTime"/></td>
                    <td>总学费:</td>
                    <td><input  name="totalTuition.id" class="easyui-combobox readOn" data-options="
                        valueField: 'id',
                        textField: 'name',
                        url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '总学费',
                        editable:false,
                        panelHeight:'auto'
                        "/>
                    </td>
                    <td>本次缴纳金额</td>
                    <td>
                        <input  class="easyui-textbox readOn" name="hasDealTuition" />
                    </td>
                </tr>
                <tr>
                    <td>优惠金额:</td>
                    <td>
                        <input  class="easyui-textbox readOn" />
                    </td>
                    <td>其他费用:</td>
                    <td>
                        <input  class="easyui-textbox readOn" />
                    </td>
                    <td>最后付款时间:</td>
                    <td>
                        <input  type= "text" class= "easyui-datetimebox"/>
                    </td>
                </tr>
                <tr>
                    <td>付款情况:</td>
                    <td><input   class="easyui-combobox readOn" data-options="
                        valueField: 'id',
                        textField: 'name',
                        url: '/dictionaryItem/getDictionaryItemByParentName.do?content=' + '付款情况',
                        editable:false,
                        panelHeight:'auto'
                        "/>
                    </td>
                    <td>计划缴纳学费:</td>
                    <td>
                        <input  class="easyui-textbox readOn" />
                    </td>
                    <td>提前缴纳学费:</td>
                    <td>
                        <input  class="easyui-textbox readOn" />
                    </td>

                </tr>
                <tr>
                    <td>说明:</td>
                    <td colspan="4">
                        <input class="easyui-textbox readOn" style="width: 440px;height: 70px"/>
                    </td>
                </tr>
            </table>
        </form>
    </div>

    <%--弹窗底部按钮--%>
    <div id="bb">
        <a href="JavaScript:;" class="easyui-linkbutton dialog-button" iconCls="icon-save" data-cmd="save">保存</a>
        <a href="JavaScript:;" class="easyui-linkbutton dialog-button" iconCls="icon-reload" data-cmd="clear">重置</a>
        <a href="JavaScript:;" class="easyui-linkbutton" iconCls="icon-cancel" data-cmd="cancel">关闭</a>
    </div>

    <%--转正弹窗底部按钮--%>
    <div id="cc">
        <a href="JavaScript:;" class="easyui-linkbutton" iconCls="icon-save" data-cmd="regularizationSave">保存</a>
        <a href="JavaScript:;" class="easyui-linkbutton" iconCls="icon-cancel" data-cmd="regularizationCancel">关闭</a>
    </div>




</body>
</html>
